package thread;

public class TestThread2 implements Runnable{
    public TestThread2(){
        Thread thread = new Thread(this);

//        thread.start();
    }
    @Override
    public void run() {
        for(int i = 0;i < 10;i++){
            try {
                Thread.sleep(1000);
                System.out.println(Thread.currentThread().getName() + "：" + i);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }

        }
    }
}
